package com.hkemmm.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping(value = "/test1",method = RequestMethod.GET)
    public String testGet(){
        return "GET测试类数据";
    }

    @RequestMapping(value = "/test1",method = RequestMethod.POST)
    public String testPost(){
        return "POST测试类数据";
    }

    @RequestMapping(value = "/test1",method = RequestMethod.PUT)
    public String testPut(){
        return "PUT测试类数据";
    }

    @RequestMapping(value = "/test1",method = RequestMethod.DELETE)
    public String testDelete(){
        return "DELETE测试类数据";
    }
}
